package io.github.definitlyevil.ziminmod.cif.armors;

import de.tr7zw.nbtapi.NBTCompound;
import io.github.definitlyevil.customitemframework.BaseItem;
import io.github.definitlyevil.customitemframework.CIFItemInstance;
import io.github.definitlyevil.ziminmod.ZiMinMod;
import org.bukkit.Material;

import java.util.Arrays;
import java.util.List;

public class ZiMinHelmet extends BaseItem {
    @Override
    public String getDisplayName(NBTCompound nbtCompound) {
        return "\u00a7e\u00a7l针男人帽子";
    }

    @Override
    public boolean isUnbreakable() {
        // 有durability
        return false;
    }

    private static final List<String> LORE = Arrays.asList(
        ZiMinMod.LORE_SEPARATOR_LINE,
        "\u00a7e这个帽子聚集了针男人的精华，",
        "\u00a7e可以解锁很多特效！",
        ZiMinMod.LORE_SEPARATOR_LINE,
        "\u00a76装备上可以：",
        "\u00a7b- \u00a7d有50%几率反射射来的箭！",
        "\u00a7b- \u00a7d有50%几率给敌人带上绿帽子！",
        ZiMinMod.LORE_SEPARATOR_LINE
    );

    @Override
    public List<String> getLore(CIFItemInstance instance) {
        return LORE;
    }

    @Override
    public Material getModelMaterial() {
        return Material.DIAMOND_HELMET;
    }

    @Override
    public int getCustomModelData(CIFItemInstance instance) {
        return 1000;
    }

    @Override
    public boolean isBlock() {
        return false;
    }
}
